package org.dtrd.modules.patient.entity.bean.report;

import cn.hutool.json.JSONArray;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.achievement.entity.bean.PatientSigninPlan;
import org.dtrd.modules.archive.entity.po.DtrdEntRdArchiveReverseScheme;

/**
 * @author qr
 * @date 2022/3/24 16:14
 */
@ApiModel("服务方案")
@Getter
@Setter
public class PatientServiceProgramme {

    @ApiModelProperty("服务名字")
    private String serviceName;

    @ApiModelProperty("服务周期")
    private String servicePeriod;

    @ApiModelProperty("用药计划")
    private String drugPlan;

    @ApiModelProperty("饮食计划")
    private String dietPlan;

    @ApiModelProperty("运动计划")
    private String sportPlan;

    @ApiModelProperty("控制目标名字")
    private String targetName;

    @ApiModelProperty("控制目标列表")
    private JSONArray targets;

    @ApiModelProperty("打卡计划")
    private PatientSigninPlan signinPlan;


    public PatientServiceProgramme parseFromPO(DtrdEntRdArchiveReverseScheme scheme) {
        drugPlan = scheme.getDrugPlan();
        dietPlan = scheme.getDietPlan();
        sportPlan = scheme.getSportPlan();
        return this;
    }


}
